﻿Public Class Form1

    Private mNewCustomer As Customer
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        mNewCustomer = New Customer
        mNewCustomer.FirstName = "Nick"
        CType(Me.hostCustomer.Child, CustomerManagment.NewCustomerControl).DataContext = mNewCustomer
    End Sub

    Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
        MsgBox(String.Format("Adding the new customer '{0} {1}' with email address {2} and phone number {3}", mNewCustomer.FirstName, mNewCustomer.LastName, mNewCustomer.Email, mNewCustomer.Phone))
        'Call webservice or WCF service to add the new customer or kick off a workflow
        'AddCustomerService()
    End Sub
End Class
